package com.springboot.demo.service;

import com.springboot.demo.dao.LibrarianViewReaderDao;
//import com.springboot.demo.entity.BRJson;
import com.springboot.demo.entity.ReaderJPA;
import com.springboot.demo.mapper.LibrarianBRVMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class LibrarianViewReaderService {
    @Autowired
    LibrarianViewReaderDao librarianViewReaderDao;
    @Resource
    LibrarianBRVMapper librarianBRVMapper;

    public List<ReaderJPA> findAllReaders(){
        return librarianViewReaderDao.findAll();
    }

    public List<Map> mySelect(String sql){
        return librarianBRVMapper.mySelect(sql);
    };

}
